import API from '../utils/request'
// 用户登录
interface IParams {
  userId: string
  shareId?: string
  platform?: string
  code?: string
}
export function login(params: IParams) {
  const res = {
    code: 0,
    data: {
      user: {
        id: 18056,
        openId: 'o4OrN4q8BFjIEURiQJ58FiKkw4gY',
        unionid: null,
        shareId: null,
        gzhId: null,
        subscribe: 0,
        nick: '风雨兼程',
        title: null,
        avtater:
          'https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKaVsd5xbNGtxwibW2WNfxtbKyicJwJMBS2yG6ckV3ibnXYibKCJqFib1pSdia4ibiaSRZ5GUpSNxE1K1PkWw/132',
        signature: null,
        feeling: 0,
        birthday: null,
        constellation: null,
        gender: 1,
        province: '重庆',
        city: '重庆',
        registerDate: '2020-02-13T02:06:35.000Z',
        hasPhoto: 0,
        hasTrends: 0,
        isAuth: 0,
        isBinding: 1,
        school: '重庆理工大学',
        education: 1,
        enrollmentYear: 2016,
        userType: 0,
        friendLimit: 25,
        begLimit: 5,
        postDayLimit: 5,
        sysMsgCount: 0,
        likeCount: 0,
        followNum: 2,
        fansNum: 0,
        thumbsNum: 6,
        followCount: 0,
        commentCount: 0,
        replyCount: 0,
        begCount: 0,
        rewardCount: 0,
        planeCount: 0,
        platform: 'wx',
        score: 94,
        converScore: 0
      },
      token:
        'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE4MDU2LCJ1c2VyVHlwZSI6MCwiaWF0IjoxNTgyNTE0OTgwfQ.rVzIawaRIya3K9vsjAvtpkMjucFn-UmzA01pwb1VC9A'
    }
  }
  return res
  // return API.put({
  //   url: '/login',
  //   data: {
  //     params
  //   }
  // })
}
